<?php
namespace app\admin\model;

class Tags extends Common
{
    protected $autoWriteTimestamp = true;
    protected $insert = ['hot' => 0];
    public function news()
    {
        return $this->belongsToMany('News', 'news_tags', 'news_id','tags_id');
    }
}